package com.spic.job.api;


import com.spic.common.core.constant.ServiceNameConstants;
import com.spic.common.core.domain.R;
import com.spic.common.core.web.domain.AjaxResult;
import com.spic.job.api.factory.RemoteGuardLeadersignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.HashMap;
import java.util.List;

/**
 * 用户服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteGuardLeadersignService", value = ServiceNameConstants.SPIC_BUSINESS_TICKETS, fallbackFactory = RemoteGuardLeadersignFallbackFactory.class)
public interface RemoteGuardLeadersignService {
    /**
     * @return 结果
     */
    @GetMapping("/mountguard/leadersignin/getSignResult")
    public R<List<HashMap<String, Object>>> selectSignCount();

    @GetMapping("/plan/inspection/live")
    public AjaxResult materialNameList();

    @GetMapping("/plan/inspection/lives")
    public AjaxResult materialNameLists();

    @GetMapping("/plan/inspection/notice")
    public AjaxResult notice();

    //称重告警
    @GetMapping("/weigh/alarm")
    public AjaxResult weighAlarm();

    @PutMapping("/violation/action/markViolationImage")
    void markViolationImage();
}
